<html>
<head><meta charset="utf-8"><title>deploy keys · t-lang/wg-unsafe-code-guidelines · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/136281-t-lang/wg-unsafe-code-guidelines/index.html">t-lang/wg-unsafe-code-guidelines</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/136281-t-lang/wg-unsafe-code-guidelines/topic/deploy.20keys.html">deploy keys</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="163662606"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/136281-t-lang/wg-unsafe-code-guidelines/topic/deploy%20keys/near/163662606" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> nikomatsakis <a href="https://rust-lang.github.io/zulip_archive/stream/136281-t-lang/wg-unsafe-code-guidelines/topic/deploy.20keys.html#163662606">(Apr 18 2019 at 15:35)</a>:</h4>
<blockquote>
<p>I'd prioritize getting something working, but if you're setting up CI I'd recommend using a deploy key instead of a token so it's scoped to just one repo rather than "all repos the user who created the token has access to"</p>
</blockquote>
<p><span class="user-mention" data-user-id="116015">@Alex Crichton</span> so I'm reading the [github docs on deploy keys](<a href="https://developer.github.com/v3/guides/managing-deploy-keys/" target="_blank" title="https://developer.github.com/v3/guides/managing-deploy-keys/">https://developer.github.com/v3/guides/managing-deploy-keys/</a> and the <a href="https://docs.travis-ci.com/user/private-dependencies/#deploy-key" target="_blank" title="https://docs.travis-ci.com/user/private-dependencies/#deploy-key">travis docs</a> (which recommend user keys, but anyway). I guess that I would need to upload the private key to travis and set the public key on GH, that's the idea?</p>



<a name="163662613"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/136281-t-lang/wg-unsafe-code-guidelines/topic/deploy%20keys/near/163662613" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> nikomatsakis <a href="https://rust-lang.github.io/zulip_archive/stream/136281-t-lang/wg-unsafe-code-guidelines/topic/deploy.20keys.html#163662613">(Apr 18 2019 at 15:35)</a>:</h4>
<p>I'm sort of leaning towards "not worth it"</p>



<a name="163662622"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/136281-t-lang/wg-unsafe-code-guidelines/topic/deploy%20keys/near/163662622" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> nikomatsakis <a href="https://rust-lang.github.io/zulip_archive/stream/136281-t-lang/wg-unsafe-code-guidelines/topic/deploy.20keys.html#163662622">(Apr 18 2019 at 15:35)</a>:</h4>
<p>but I guess I see the advantages</p>



<a name="163663198"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/136281-t-lang/wg-unsafe-code-guidelines/topic/deploy%20keys/near/163663198" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> nikomatsakis <a href="https://rust-lang.github.io/zulip_archive/stream/136281-t-lang/wg-unsafe-code-guidelines/topic/deploy.20keys.html#163663198">(Apr 18 2019 at 15:43)</a>:</h4>
<p>Woah, this travis thing that curls <a href="https://github.com/alexcrichton/rust-travis-deploy/" target="_blank" title="https://github.com/alexcrichton/rust-travis-deploy/">https://github.com/alexcrichton/rust-travis-deploy/</a> and runs rustc on it kind of creeps me out :)</p>



<a name="163663258"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/136281-t-lang/wg-unsafe-code-guidelines/topic/deploy%20keys/near/163663258" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> nikomatsakis <a href="https://rust-lang.github.io/zulip_archive/stream/136281-t-lang/wg-unsafe-code-guidelines/topic/deploy.20keys.html#163663258">(Apr 18 2019 at 15:43)</a>:</h4>
<p>But I guess that <a href="https://github.com/alexcrichton/rust-travis-deploy/blob/master/add-travis-deploy.rs" target="_blank" title="https://github.com/alexcrichton/rust-travis-deploy/blob/master/add-travis-deploy.rs">https://github.com/alexcrichton/rust-travis-deploy/blob/master/add-travis-deploy.rs</a> will do the work for me, eh?</p>



<a name="163663312"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/136281-t-lang/wg-unsafe-code-guidelines/topic/deploy%20keys/near/163663312" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> nikomatsakis <a href="https://rust-lang.github.io/zulip_archive/stream/136281-t-lang/wg-unsafe-code-guidelines/topic/deploy.20keys.html#163663312">(Apr 18 2019 at 15:44)</a>:</h4>
<p><span class="user-mention" data-user-id="116015">@Alex Crichton</span> do you have some instructions for this repo? :)</p>



<a name="163663573"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/136281-t-lang/wg-unsafe-code-guidelines/topic/deploy%20keys/near/163663573" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Alex Crichton <a href="https://rust-lang.github.io/zulip_archive/stream/136281-t-lang/wg-unsafe-code-guidelines/topic/deploy.20keys.html#163663573">(Apr 18 2019 at 15:47)</a>:</h4>
<p>I would personally recommend getting deploy keys working but if it's too much hassle it's not worth it, it can always be configured later</p>



<a name="163663584"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/136281-t-lang/wg-unsafe-code-guidelines/topic/deploy%20keys/near/163663584" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Alex Crichton <a href="https://rust-lang.github.io/zulip_archive/stream/136281-t-lang/wg-unsafe-code-guidelines/topic/deploy.20keys.html#163663584">(Apr 18 2019 at 15:47)</a>:</h4>
<p>but yes that repo should have all that's necessary to do it</p>



<a name="163663591"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/136281-t-lang/wg-unsafe-code-guidelines/topic/deploy%20keys/near/163663591" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Alex Crichton <a href="https://rust-lang.github.io/zulip_archive/stream/136281-t-lang/wg-unsafe-code-guidelines/topic/deploy.20keys.html#163663591">(Apr 18 2019 at 15:47)</a>:</h4>
<p>if you execute <code>add-travis-deploy</code> it should print out instructions</p>



<a name="163663651"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/136281-t-lang/wg-unsafe-code-guidelines/topic/deploy%20keys/near/163663651" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Alex Crichton <a href="https://rust-lang.github.io/zulip_archive/stream/136281-t-lang/wg-unsafe-code-guidelines/topic/deploy.20keys.html#163663651">(Apr 18 2019 at 15:48)</a>:</h4>
<p>(and it'll add a key to the github repo, print out what to put in travis, and also add the env var to travis)</p>



<a name="163663667"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/136281-t-lang/wg-unsafe-code-guidelines/topic/deploy%20keys/near/163663667" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Alex Crichton <a href="https://rust-lang.github.io/zulip_archive/stream/136281-t-lang/wg-unsafe-code-guidelines/topic/deploy.20keys.html#163663667">(Apr 18 2019 at 15:48)</a>:</h4>
<p>there's currently no instructions and it's not super well documented, I largely just wanted to make it for my own usage to start out ;0</p>



<a name="163663669"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/136281-t-lang/wg-unsafe-code-guidelines/topic/deploy%20keys/near/163663669" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Alex Crichton <a href="https://rust-lang.github.io/zulip_archive/stream/136281-t-lang/wg-unsafe-code-guidelines/topic/deploy.20keys.html#163663669">(Apr 18 2019 at 15:48)</a>:</h4>
<p>:)*</p>



<a name="163664591"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/136281-t-lang/wg-unsafe-code-guidelines/topic/deploy%20keys/near/163664591" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> gnzlbg <a href="https://rust-lang.github.io/zulip_archive/stream/136281-t-lang/wg-unsafe-code-guidelines/topic/deploy.20keys.html#163664591">(Apr 18 2019 at 16:00)</a>:</h4>
<p>FYI I tried it on macosx and it did not work as is for me - once I got it working things failed because I did not have permisions to upload deploy keys to travis, but the script appeared to fail to capture that - <span class="user-mention" data-user-id="116015">@Alex Crichton</span> you might want to add the disclaimer to the readme that it is linux only or something</p>



<a name="163664938"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/136281-t-lang/wg-unsafe-code-guidelines/topic/deploy%20keys/near/163664938" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Alex Crichton <a href="https://rust-lang.github.io/zulip_archive/stream/136281-t-lang/wg-unsafe-code-guidelines/topic/deploy.20keys.html#163664938">(Apr 18 2019 at 16:04)</a>:</h4>
<p>I didn't really write it to be the most robust thing in the world, I just wrote it to work for me...</p>



<a name="163668474"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/136281-t-lang/wg-unsafe-code-guidelines/topic/deploy%20keys/near/163668474" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> gnzlbg <a href="https://rust-lang.github.io/zulip_archive/stream/136281-t-lang/wg-unsafe-code-guidelines/topic/deploy.20keys.html#163668474">(Apr 18 2019 at 16:48)</a>:</h4>
<p><span class="user-mention" data-user-id="116015">@Alex Crichton</span> i wasn't suggesting otherwise, just mentioning what I tried, what worked, and what did not</p>



<a name="164719061"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/136281-t-lang/wg-unsafe-code-guidelines/topic/deploy%20keys/near/164719061" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> nikomatsakis <a href="https://rust-lang.github.io/zulip_archive/stream/136281-t-lang/wg-unsafe-code-guidelines/topic/deploy.20keys.html#164719061">(May 02 2019 at 15:43)</a>:</h4>
<p>OK, i've invested quite a bit of time in this and I still can't quite get it to work. Admittedly, for reasons that are probably just me being silly.</p>



<a name="164719144"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/136281-t-lang/wg-unsafe-code-guidelines/topic/deploy%20keys/near/164719144" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> nikomatsakis <a href="https://rust-lang.github.io/zulip_archive/stream/136281-t-lang/wg-unsafe-code-guidelines/topic/deploy.20keys.html#164719144">(May 02 2019 at 15:44)</a>:</h4>
<p>(e.g., I can't install the travis tool, etc)</p>



<a name="164719334"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/136281-t-lang/wg-unsafe-code-guidelines/topic/deploy%20keys/near/164719334" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> nikomatsakis <a href="https://rust-lang.github.io/zulip_archive/stream/136281-t-lang/wg-unsafe-code-guidelines/topic/deploy.20keys.html#164719334">(May 02 2019 at 15:46)</a>:</h4>
<p>but also the travis docs etc for this stuff just seem totally wrong</p>



<a name="164719338"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/136281-t-lang/wg-unsafe-code-guidelines/topic/deploy%20keys/near/164719338" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> nikomatsakis <a href="https://rust-lang.github.io/zulip_archive/stream/136281-t-lang/wg-unsafe-code-guidelines/topic/deploy.20keys.html#164719338">(May 02 2019 at 15:46)</a>:</h4>
<p>or else I am confused :)</p>



<a name="164719695"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/136281-t-lang/wg-unsafe-code-guidelines/topic/deploy%20keys/near/164719695" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> nikomatsakis <a href="https://rust-lang.github.io/zulip_archive/stream/136281-t-lang/wg-unsafe-code-guidelines/topic/deploy.20keys.html#164719695">(May 02 2019 at 15:51)</a>:</h4>
<p>Running <span class="user-mention" data-user-id="116015">@Alex Crichton</span>'s script seems to give me:</p>
<div class="codehilite"><pre><span></span>{
  &quot;message&quot;: &quot;Not Found&quot;,
  &quot;documentation_url&quot;: &quot;https://developer.github.com/v3/repos/keys/#add-a-new-deploy-key&quot;
}
</pre></div>


<p>Is that the same problem you saw, <span class="user-mention" data-user-id="132920">@gnzlbg</span>? I guess not</p>



<a name="164719699"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/136281-t-lang/wg-unsafe-code-guidelines/topic/deploy%20keys/near/164719699" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> nikomatsakis <a href="https://rust-lang.github.io/zulip_archive/stream/136281-t-lang/wg-unsafe-code-guidelines/topic/deploy.20keys.html#164719699">(May 02 2019 at 15:51)</a>:</h4>
<p>I suppose I can add the github key myself</p>



<a name="164719765"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/136281-t-lang/wg-unsafe-code-guidelines/topic/deploy%20keys/near/164719765" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> nikomatsakis <a href="https://rust-lang.github.io/zulip_archive/stream/136281-t-lang/wg-unsafe-code-guidelines/topic/deploy.20keys.html#164719765">(May 02 2019 at 15:52)</a>:</h4>
<p>but my bigger problem is not having the <code>travis</code> tool</p>



<a name="164719786"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/136281-t-lang/wg-unsafe-code-guidelines/topic/deploy%20keys/near/164719786" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> gnzlbg <a href="https://rust-lang.github.io/zulip_archive/stream/136281-t-lang/wg-unsafe-code-guidelines/topic/deploy.20keys.html#164719786">(May 02 2019 at 15:52)</a>:</h4>
<p>no that was not the error i got, I did use the travis tool</p>



<a name="164719815"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/136281-t-lang/wg-unsafe-code-guidelines/topic/deploy%20keys/near/164719815" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> gnzlbg <a href="https://rust-lang.github.io/zulip_archive/stream/136281-t-lang/wg-unsafe-code-guidelines/topic/deploy.20keys.html#164719815">(May 02 2019 at 15:53)</a>:</h4>
<p>if you are on mac it can be easily installed via homebrew</p>



<a name="164720128"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/136281-t-lang/wg-unsafe-code-guidelines/topic/deploy%20keys/near/164720128" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> nikomatsakis <a href="https://rust-lang.github.io/zulip_archive/stream/136281-t-lang/wg-unsafe-code-guidelines/topic/deploy.20keys.html#164720128">(May 02 2019 at 15:57)</a>:</h4>
<p>I'm not on mac</p>



<a name="164720138"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/136281-t-lang/wg-unsafe-code-guidelines/topic/deploy%20keys/near/164720138" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> nikomatsakis <a href="https://rust-lang.github.io/zulip_archive/stream/136281-t-lang/wg-unsafe-code-guidelines/topic/deploy.20keys.html#164720138">(May 02 2019 at 15:57)</a>:</h4>
<p>I think I got it building now, at least on my fedora machine</p>



<a name="164720634"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/136281-t-lang/wg-unsafe-code-guidelines/topic/deploy%20keys/near/164720634" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> nikomatsakis <a href="https://rust-lang.github.io/zulip_archive/stream/136281-t-lang/wg-unsafe-code-guidelines/topic/deploy.20keys.html#164720634">(May 02 2019 at 16:03)</a>:</h4>
<p>now I can't get it to login</p>



<a name="164721384"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/136281-t-lang/wg-unsafe-code-guidelines/topic/deploy%20keys/near/164721384" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> nikomatsakis <a href="https://rust-lang.github.io/zulip_archive/stream/136281-t-lang/wg-unsafe-code-guidelines/topic/deploy.20keys.html#164721384">(May 02 2019 at 16:13)</a>:</h4>
<p>ok, I have to give up on this</p>



<a name="164725558"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/136281-t-lang/wg-unsafe-code-guidelines/topic/deploy%20keys/near/164725558" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> gnzlbg <a href="https://rust-lang.github.io/zulip_archive/stream/136281-t-lang/wg-unsafe-code-guidelines/topic/deploy.20keys.html#164725558">(May 02 2019 at 17:04)</a>:</h4>
<p>:/ we should just use normal GITHUB_TOKENS, and publish the book, and let the infra team that we are doing that, and if they want to switch to deploy keys, they can send a PR</p>



<a name="164725616"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/136281-t-lang/wg-unsafe-code-guidelines/topic/deploy%20keys/near/164725616" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> gnzlbg <a href="https://rust-lang.github.io/zulip_archive/stream/136281-t-lang/wg-unsafe-code-guidelines/topic/deploy.20keys.html#164725616">(May 02 2019 at 17:05)</a>:</h4>
<p>the intersection of people that have travis rights and know how to use deploy keys is really small</p>



<a name="164742023"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/136281-t-lang/wg-unsafe-code-guidelines/topic/deploy%20keys/near/164742023" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> nikomatsakis <a href="https://rust-lang.github.io/zulip_archive/stream/136281-t-lang/wg-unsafe-code-guidelines/topic/deploy.20keys.html#164742023">(May 02 2019 at 20:20)</a>:</h4>
<p>yeah</p>



<a name="164742028"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/136281-t-lang/wg-unsafe-code-guidelines/topic/deploy%20keys/near/164742028" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> nikomatsakis <a href="https://rust-lang.github.io/zulip_archive/stream/136281-t-lang/wg-unsafe-code-guidelines/topic/deploy.20keys.html#164742028">(May 02 2019 at 20:21)</a>:</h4>
<p>it's not worth it :)</p>



<a name="164919228"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/136281-t-lang/wg-unsafe-code-guidelines/topic/deploy%20keys/near/164919228" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> RalfJ <a href="https://rust-lang.github.io/zulip_archive/stream/136281-t-lang/wg-unsafe-code-guidelines/topic/deploy.20keys.html#164919228">(May 05 2019 at 13:21)</a>:</h4>
<p>also WTF why is that so hard?^^</p>



<a name="164970723"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/136281-t-lang/wg-unsafe-code-guidelines/topic/deploy%20keys/near/164970723" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> gnzlbg <a href="https://rust-lang.github.io/zulip_archive/stream/136281-t-lang/wg-unsafe-code-guidelines/topic/deploy.20keys.html#164970723">(May 06 2019 at 10:28)</a>:</h4>
<p><span class="user-mention" data-user-id="120791">@RalfJ</span> there is just less documentation for deploy keys than for github tokens, and while everybody has used tokens at one point or another, very few have used deploy keys. Then there is also the permission issues. Github tokens requires only rust-lang github permissions, which many people have, but deploy keys requires also travis CI permissions, which very few people have - and these people also have very little time to dig into this.</p>



<a name="164974791"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/136281-t-lang/wg-unsafe-code-guidelines/topic/deploy%20keys/near/164974791" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> RalfJ <a href="https://rust-lang.github.io/zulip_archive/stream/136281-t-lang/wg-unsafe-code-guidelines/topic/deploy.20keys.html#164974791">(May 06 2019 at 11:44)</a>:</h4>
<p>(FWIW I was directing this more at GH/Travis)</p>



<a name="164987413"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/136281-t-lang/wg-unsafe-code-guidelines/topic/deploy%20keys/near/164987413" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> gnzlbg <a href="https://rust-lang.github.io/zulip_archive/stream/136281-t-lang/wg-unsafe-code-guidelines/topic/deploy.20keys.html#164987413">(May 06 2019 at 14:44)</a>:</h4>
<p>I think deploy keys aren't necessarily hard, alex wrote a tool that does that kind of automatically, but for some reason that does not appear to work as is in nikos' system, and debugging travis issues takes time that they might not have (you basically need to work on the repo's master, since the book is only built there, and you have to modify something, wait for travis to finish, etc. so the iteration loop is long).</p>



<a name="165270057"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/136281-t-lang/wg-unsafe-code-guidelines/topic/deploy%20keys/near/165270057" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> nikomatsakis <a href="https://rust-lang.github.io/zulip_archive/stream/136281-t-lang/wg-unsafe-code-guidelines/topic/deploy.20keys.html#165270057">(May 09 2019 at 16:55)</a>:</h4>
<p>Hmm, maybe <a href="https://github.com/rust-lang/infra-team/blob/static-websites/guidelines/static-websites.md#deploying-the-website" target="_blank" title="https://github.com/rust-lang/infra-team/blob/static-websites/guidelines/static-websites.md#deploying-the-website">these instructions help</a>.</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>